package mc747.portal.logicas;

import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import mc747.portal.servlet.Logica;
import mc747.servicos.autenticacao.Builder;

public class RecuperarSenha implements Logica {

	public void executa(HttpServletRequest req, HttpServletResponse res)
			throws Exception {
		//Falta colocar as chamadas do web services aqui
		String email = req.getParameter("email");
		Builder.recuperarSenha(email);
		String fwd = req.getParameter("fwd");
		RequestDispatcher rd = req.getRequestDispatcher(req.getParameter("fwdSuccess"));
		rd.forward(req, res);

	}


}
